Contents | Index | < Browse | Browse >
LETTERstrtodULETTER
Converts a string to a double-precision floating-point number.
Overview
#include <stdlib.h>
d = strtod(s,nextchar);
double d;
const char *s;
char **nextchar;
Portability
ANSI
Description
Attempts to convert the string "s" into a double-precision floating-point
number. If an error occurs, errno will be set. "nextchar" can be zero or a
pointer to a variable which points to the first character which should not
be converted.
Returns
A double-precision floating-point number.
See also
sscanf